/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package dancrawler.db;

import dancrawler.sound.Sound;
import java.io.UnsupportedEncodingException;
import java.util.HashMap;
import java.util.Iterator;
import java.util.Map;

/**
 *
 * @author Team 4 RMI, HINGDA10
 */
public class test {

  /**
   *
   * @param args
   * @throws UnsupportedEncodingException
   */
  public static void main(String[] args) throws UnsupportedEncodingException {
    Map<Integer,Stats> outputStats = new HashMap();
    Map<String,Sound> outputSounds = new HashMap();
    Database test = new Database();
    System.out.println(test.dbFileName);
    outputStats = test.getStatsFromSQL();
    outputSounds = test.getSoundsFromSQL();
    Iterator it = outputStats.entrySet().iterator();
    while (it.hasNext()) {
        Map.Entry pairs = (Map.Entry)it.next();
        System.out.println(pairs.getKey() + " = " + pairs.getValue());
        it.remove(); // avoids a ConcurrentModificationException
    }
    Iterator it2 = outputSounds.entrySet().iterator();
    while (it2.hasNext()) {
        Map.Entry pairs = (Map.Entry)it2.next();
        System.out.println(pairs.getKey() + " = " + pairs.getValue());
        it2.remove(); // avoids a ConcurrentModificationException
    }
  }
}
